import Layout from '@/page/index/'
import custRouter from './cust.js'
import jkdnRouter from './jkdn.js'
import reportRouter from './report.js'
export default [
  {
    path: '/wel',
    component: Layout,
    redirect: '/wel/index',
    children: [
      {
        path: 'index',
        name: '首页',
        component: () => import(/* webpackChunkName: "views" */ '@/page/wel')
      }
    ]
  },
  {
    path: '/info',
    component: Layout,
    redirect: '/info/index',
    children: [
      {
        path: 'index',
        name: '个人信息',
        component: () =>
          import(/* webpackChunkName: "views" */ '@/views/info/index')
      }
    ]
  },
  {
    path: '/vipLevel',
    component: Layout,
    children: [
      {
        path: 'add',
        name: '添加等级',
        component: () =>
          import(
            /* webpackChunkName: "utils" */ '@/views/vipManage/vipLevelAdd'
          )
      },
      {
        path: 'edit/:id',
        name: '修改等级',
        component: () =>
          import(
            /* webpackChunkName: "utils" */ '@/views/vipManage/vipLevelAdd'
          )
      }
    ]
  },
  {
    path: '/hotelManage',
    component: Layout,
    children: [
      {
        path: 'add',
        name: '酒店添加',
        component: () =>
          import(
            /* webpackChunkName: "utils" */ '@/views/hotelManage/hotelManageAdd'
          )
      },
      {
        path: 'edit/:id',
        name: '酒店修改',
        component: () =>
          import(
            /* webpackChunkName: "utils" */ '@/views/hotelManage/hotelManageAdd'
          )
      }
    ]
  },
  {
    path: '/houseType',
    component: Layout,
    children: [
      {
        path: 'add',
        name: '添加房型',
        component: () =>
          import(
            /* webpackChunkName: "utils" */ '@/views/houseTypeManage/houseTypeAdd'
          )
      },
      {
        path: 'edit/:id',
        name: '修改房型',
        component: () =>
          import(
            /* webpackChunkName: "utils" */ '@/views/houseTypeManage/houseTypeAdd'
          )
      }
    ]
  },
  {
    path: '/cust',
    component: Layout,
    children: [
      {
        path: 'base',
        name: '个人基本信息列表',
        component: () => import('@/views/cust/list')
      },
      {
        path: 'header',
        name: '个人基本信息',
        component: () => import('@/views/cust/header'),
        children: custRouter
      },
      {
        path: 'jkdn',
        name: '健康体检档案',
        component: () => import('@/views/cust/health/list')
      },
      {
        path: 'jkdnMenu',
        name: '健康体检档案',
        component: () => import('@/views/cust/menu/healthList'),
        meta: {
          keepAlive: true
        }
      },
      {
        path: 'oldZyyjk',
        name: '中医体质辨识',
        component: () => import('@/views/cust/menu/oldZyyjkList')
      },
      {
        path: 'collect',
        name: '中医体质辨识',
        component: () => import('@/views/cust/menu/oldZyyjk')
      },
      {
        path: 'report',
        name: '居民基础档案表',
        component: () => import('@/views/report/reportHeader'),
        children: reportRouter
      },
      {
        path: 'jkdn/:id',
        name: '居民健康档案信息',
        component: () => import('@/views/cust/health/header'),
        children: jkdnRouter
      }
    ]
  },
  {
    path: '/home',
    component: Layout,
    children: [
      {
        path: 'in',
        name: '头部信息',
        component: () =>
          import(/* webpackChunkName: "utils" */ '@/views/hotelManage/index'),
        children: custRouter
      }
    ]
  }
]
